<extend name="Home@Base/common" />
<block name="body">
    <div class="span9 page_message">
        <section id="contents"> <include file="Home@Addons/_nav" />
            <div class="tab-content">
                <php> $post_url || $post_url = U('add?model='.$model['id'], $get_param);</php>
                <div class="form-horizontal form-center" method="post" action="{$post_url}" id="form">
                    <div class="form-item cf">
                        <label class="item-label"> <span class="need_flag">*</span>职务<span class="check-tips"></span></label>
                        <div class="controls">
                            <select name="duty_id">
                                <volist name="duty" id="vo">
                                    <option value="{$vo.id}">{$vo.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label"> <span class="need_flag">*</span>角色<span class="check-tips"></span></label>
                        <div class="controls">
                            <volist name="role" id="vo">
                                <input type='checkbox' name='{$vo.name}' value=1>{$vo.name}<br>
                            </volist>
                        </div>
                        <!--<table>
                            <tr><td><input type="checkbox" value="0" onclick="allChoice()" id="allCheck" name="checks"> 全选</td></tr>
                            <tr><td></td></tr>
                            <tr><td><input type="checkbox" value="三级报警" name="checks" onclick="oneChoice()"> 三级报警</td></tr>
                            <tr><td></td></tr>
                            <tr><td><input type="checkbox" value="二级报警" name="checks" onclick="oneChoice()"> 二级报警</td></tr>
                            <tr><td></td></tr>
                            <tr><td><input type="checkbox" value="一级报警" name="checks" onclick="oneChoice()"> 一级报警</td></tr>
                            <tr><td></td></tr>
                            <tr><td><input type="checkbox" value="车辆定位" name="checks" onclick="oneChoice()"> 车辆定位</td></tr>
                            <tr><td></td></tr>
                            <tr><td><input type="checkbox" value="车辆状态" name="checks" onclick="oneChoice()"> 车辆状态</td></tr>
                            <tr><td></td></tr>
                            <tr><td><input type="checkbox" value="车辆状况" name="checks" onclick="oneChoice()"> 车辆状况</td></tr>
                        </table> -->
                    </div>
                    <div class="form-item form_bh">
                        <input type="hidden" name="id" value="{$data.id}">
                        <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    </div>
                </form>
            </div>
        </section>
    </div>
</block>
